/*              CUSTOM BODY                     */
body { 
    padding: 0; 
    margin: 0; 
    font-family: -apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
}

* {
    box-sizing: border-box !important;
}

/*        CUSTOM DAILY TASK FORM                */
.attivita-form {
    margin: 20px 0 !important;
    padding: 0 !important;
    background: transparent;
    border-radius: 12px;
    border: none;
    box-shadow: none;
}

.attivita-title {
    margin: 0;
    color: #2d3748;
    font-size: 18px;
}

.attivita-fields {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.attivita-field label {
    font-weight: 500;
    font-size: 15px;
    color: #4a5568;
    margin-bottom: 6px;
    display: block;
}

.attivita-field input,
.attivita-field textarea,
.attivita-field select {
    padding: 9px 12px;
    font-size: 15px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    transition: border-color 0.2s;
    margin-top: 2px;
    width: 100%;
}

.attivita-field textarea {
    resize: none;
}
.attivita-field input:focus,
.attivita-field textarea:focus,
.attivita-field select:focus {
    border-color: #3182ce;
    outline: none;
}

.attivita-field.flag-switch {
    display: flex;
    align-items: center;
    gap: 14px;
}

.flag-label {
    font-size: 15px;
    min-width: 60px;
    color: #4a5568;
    font-weight: 500;
}

.attivita-switch {
    position: relative;
    display: inline-block;
    width: 88px;
    height: 52px;
}

.attivita-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.attivita-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #e2e8f0;
    border-radius: 26px;
    transition: background 0.2s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}

.attivita-slider:before {
    position: absolute;
    content: "";
    height: 40px;
    width: 40px;
    left: 6px;
    bottom: 6px;
    background-color: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.10);
}

.attivita-switch input:checked + .attivita-slider {
    background-color: #3182ce;
}

.attivita-switch input:checked + .attivita-slider:before {
    transform: translateX(36px);
}

.attivita-switch-label {
    min-width: 28px;
    font-weight: 500;
    color: #2d3748;
    font-size: 15px;
}

.attivita-field.attivita-number-input label {
    margin-bottom: 6px;
    display: block;
    color: #4a5568;
    font-weight: 500;
}

.number-input-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 8px;
    overflow: hidden;
}

.number-input-wrapper input[type="number"] {
    width: auto;
    border: none;
    text-align: center;
    font-size: 15px;
    padding: 8px 0;
    outline: none;
    background: transparent;
    margin: 2px auto;
}

.num-btn {
    background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
    border: none;
    color: #3182ce;
    font-size: 15px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(49,130,206,0.07);
    transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.12s;
    margin: 0 4px;
    outline: none;
    border: 1.5px solid #e2e8f0;
}

.num-btn.btn-primary {
    background: #3182ce;
    color: #fff;
}

.num-btn.btn-danger {
    background: #e53e3e;
    color: #fff;
}

.num-btn:active {
    box-shadow: 0 2px 8px rgba(49,130,206,0.13);
    transform: scale(0.93);
}

.attivita-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 22px;
    gap: 12px;
}

.attivita-btn {
    background: #3182ce;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 22px;
    font-size: 15px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
    transition: box-shadow 0.2s;
}

.attivita-btn:hover,
.attivita-btn:active {
    background: #2563eb;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2), 0 3px 10px 0 rgba(0, 0, 0, 0.19);
}

.attivita-btn-secondary {
    background: #e2e8f0;
    color: #2d3748;
}

.attivita-btn-secondary:hover {
    background: #cbd5e1;
}

.attivita-btn:active {
    transform: translateY(2px);
}

.attivita-feedback {
    margin-top: 18px;
    text-align: center;
    font-size: 15px;
    color: #e53e3e;
    min-height: 22px;
}

/*        CUSTOM DAY REMINDER                   */
#promemoria-popup-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

/* Singolo popup */
.promemoria-popup {
    min-width: 260px;
    max-width: 350px;
    background: #fffbe6;
    color: #333;
    border-left: 5px solid #f7b500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.13);
    border-radius: 6px;
    padding: 8px 20px 8px 8px;
    font-size: 15px;
    position: relative;
    pointer-events: auto;
    animation: slideInLeft 0.4s;
}

.promemoria-popup .close-btn {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: none;
    color: #b38b00;
    cursor: pointer;
    font-weight: bold;
    line-height: 1;
    padding: 0;
}

@keyframes slideInLeft {
    from { transform: translateX(-60px); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}
@media all and (max-width: 600px) {
    #promemoria-popup-container {
        left: 5px;
        bottom: 5px;
    }
    .promemoria-popup {
        min-width: 150px;
        max-width: 200px;
        font-size: 0.9rem;
    }
}

/*        CUSTOM 3CX INCOMING CALL POPUP         */
.popup-3cx {
    position: fixed;
    bottom: 20px;
    right: 8px;
    padding: 2px !important;
    height: 130px !important;
    width: 320px !important;
    z-index: 9999;
}

@media all and (max-width: 600px) {
    .popup-3cx {
        width: 250px !important;
        height: 100px !important;
        font-size: small;
        overflow-y: auto;
    }
}


/*             CUSTOM DROPDOWN WORK JOBS         */
#dropdown_timbrature {
    display: flex;
    justify-content: center;
    margin-top: 0;
    height: fit-content;
}

.btn-dropdown-ore-letueore {
    color: #399ea7 !important;
}

.btn-dropdown-ore-seiallavoro {
    color: #28a745 !important;
}

.btn-dropdown-ore-seiinpausa {
    color: #3d3d3d !important;
}

.btn-dropdown-ore-seiinpermesso {
    color: #90b834 !important;
}

.btn-dropdown-ore-seiinferie {
    color: #960f0f !important;
}

/*             CUSTOM MENU LINK HEADER           */
.badge-menu-tecnico {
    display: none;
}
.badge-timbrature {
    display: none;
}
@media all and (max-width: 600px) {
    .nav-item-menu-tecnico,
    #dropdown_timbrature {
        width: 100%;
        margin: 5px 20px;
    }
    .badge-menu-tecnico,
    .badge-timbrature {
        display: inline-block;
        margin: 0 8px;
    }
    .nav-item-menu-tecnico a,
    #dropdown_timbrature > a {
        width: 100%;
        height: 100%;
        padding: 10px;
        background: #399ea729;
        border-radius: 8px;
        text-align: center;
        color: #399ea7;
    }
    
    .btn-dropdown-ore-letueore {
        color: #399ea7 !important;
        background: #399ea729 !important;
    }

    .btn-dropdown-ore-seiallavoro {
        color: #28a745 !important;
        background: #28a74529 !important;
    }

    .btn-dropdown-ore-seiinpausa {
        color: #3d3d3d !important;
        background: #3d3d3d29 !important;
    }

    .btn-dropdown-ore-seiinpermesso {
        color: #90b834 !important;
        background: #90b83429 !important;
    }

    .btn-dropdown-ore-seiinferie {
        color: #960f0f !important;
        background: #960f0f29 !important;
    }
}

/*        CUSTOM BOOTSTRAP BREADCRUMB            */
#breadcrumb-title
{
    background-color: white;
    border-radius: 0.5rem;
    padding: 0.2rem 0.5rem;
    margin-bottom: 0;
    font-weight: normal;
    text-decoration: none;
}

/*        CUSTOM CONTEXT MENU                   */
.context-menu-custom {
    position: absolute;
    z-index: 9999;
    background: #fff;
    border: 1px solid #ccc;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.2);
    padding: 0;
    min-width: 180px;
    border-radius: 6px;
    font-size: 15px;
}

.context-title-custom {
    padding: 8px;
    margin: 0 3px 2px 3px;
    border-bottom: 1px solid #ccc;
}

.context-action-custom {
    padding: 10px;
    cursor: pointer;
}

.context-action-custom:hover, .context-action-custom:active {
    background-color: #f0f0f0;
}

/*        CUSTOM BOOTSTRAP TOOLTIP              */
.tooltip-inner
{
    z-index: 9999;
    width: fit-content;
    max-width: 200px;
    padding: 0.2rem 0.5rem;
    color: #fff;
    text-align: center;
    background-color: #333 !important;
    border-radius: .25rem;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2), 0 3px 10px 0 rgba(0, 0, 0, 0.19);
}

/*              CUSTOM FORM                     */
form { 
    margin-block-end: 0; 
}
.form-control:focus, 
.select2-container .select2-selection--single:focus {
    border-color: #ddd;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}
.btn-home-check, .home-check {
    display: none;
}

/*            CUSTOM INPUT NO BORDER                  */
.input-table {
    background-color: transparent;
    margin: 0;
    padding: 1px;
    width: 100%;
    height: 100%;
    border: none;
    font-weight: normal;
}

.input-table:focus {
    font-weight: bold;
}

/*              CUSTOM INPUT NUMBER               */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.modal-xl .modal-content {
    border-radius: 8px;
    border: none;
    box-shadow: 0 6px 16px 0 rgba(0, 0, 0, 0.2), 0 12px 40px 0 rgba(0, 0, 0, 0.19);
}
.btn {
    border-radius: 5px;
}
.btn:hover, .btn:active {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}
.btn:active {
    transform: translateY(2px);
}
.btn-group-xs > .btn, .btn-xs {
    padding: .25rem .4rem;
    font-size: .875rem;
    line-height: .5;
    border-radius: .2rem;
}
.row-link a {
    border-radius: 10px;
    padding-top: auto;
    padding-bottom: auto;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2), 0 3px 10px 0 rgba(0, 0, 0, 0.19);
    transition: all 0.3s ease 0s;
}
.row-link a:hover {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    transform: translateY(-2px);
}
.tr-seriale {
    cursor: pointer;
}

.text-ellipsis {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-div {
    border-radius: 10px;
    transition: 0.3s;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}
.card-div:hover {
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.4), 0 12px 40px 0 rgba(0, 0, 0, 0.37);
}

.card-link {
    display: flex;
    justify-content: center !important;
    align-items: center !important;
    text-decoration: none;
    color: inherit;
}

/*              CUSTOM SELECT2                  */
.select2-selection__rendered {
    line-height: calc(2.9em) !important;
}
.select2-container .select2-selection--single {
    height: calc(2.9em) !important;
    min-height: 30px !important;
    border: 1px solid #ced4da !important;
}
.select2-selection__arrow {
    height: calc(2.9em) !important;
}

.select2 {
    font-weight: normal !important;
    font-size: 1rem;
}
.form-group-lg .select2 {
    font-size: 1.25rem !important;
}
.select2-container .select2-selection--single .select2-selection__rendered {
    display: inline !important;
    padding: 0.375rem 0.75rem !important;
}

/* force select2 to match bootstrap form-control */ 
.form-group .select2, .form-group .select2-selection__rendered 
{ 
    line-height: calc(1.5em + .75rem + 2px) !important; 
} 
.form-group .select2-container .select2-selection--single 
{ 
    height: calc(1.5em + .75rem + 3.95px) !important; 
} 
.form-group .select2-selection__arrow 
{ 
    height: calc(1.5em + .75rem + 3.95px) !important; 
}

/* force select2 to match bootstrap form-control-lg */ 
.form-group-lg .select2, .form-group-lg .select2-selection__rendered 
{ 
    line-height: calc(1.5em + 1rem + 2px) !important; 
} 
.form-group-lg .select2-container .select2-selection--single 
{ 
    height: calc(1.5em + 1rem + 3.95px) !important; 
} 
.form-group-lg .select2-selection__arrow 
{ 
    height: calc(1.5em + 1rem + 3.95px) !important; 
}

/* force select2 to match bootstrap form-control-sm */ 
.form-group-sm .select2, .form-group-sm .select2-selection__rendered 
{ 
    line-height: calc(1.5em + .5rem + 2px) !important; 
} 
.form-group-sm .select2-container .select2-selection--single 
{ 
    height: calc(1.5em + .5rem + 3.95px) !important; 
} 
.form-group-sm .select2-selection__arrow 
{ 
    height: calc(1.5em + .5rem + 3.95px) !important; 
}

form.submitted select:invalid,
select.invalid-form,
.invalid-form,
form.submitted input:invalid {
    border: 1px solid #dc3545 !important;
    border-color: #dc3545 !important;
    padding-right: calc(1.5em + .75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(1em + .1875rem) center;
    background-size: calc(.75em + .375rem) calc(.75em + .375rem);
}
input.invalid-form, form.submitted input:invalid {
    background-position: right calc(.375em + .1875rem) center;
}

.select2-container.invalid-form {
    border: 1px solid #dc3545 !important;
    padding-right: calc(1.5em + .75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(1em + .1875rem) center;
    background-size: calc(.75em + .375rem) calc(.75em + .375rem);
    border-radius: .2rem !important;
}
.select2-container.invalid-form .select2-selection--single {
    border: none !important;
}
.select2-container.invalid-form .select2-selection--single:focus {
    box-shadow: none !important;
}

/*              CUSTOM FAKE BUTTON              */
.btn-fake
{
    cursor: none;
    pointer-events: none;
}
.btn-fake.btn-label
{
    margin: 0;
    padding: 0;
}

/*              CUSTOM COLOR PICKER             */
#color_picker
{
    display: none;
    position: absolute;
    height: auto;
    width: auto;
    padding: 0;
    margin: 0;
    z-index: 10;
}
.colorpicker, .colorpicker * 
{
    z-index: 9999;
}



/*              CUSTOM TD CLICKABLE              */
.td-clickable
{
    font-weight: bold !important;
    text-align: center;
    cursor: pointer;
    color: black;
    transition: 0.4s;
    border-radius: 0.3em;
}
.td-clickable:hover, .td-clickable:active
{
    color: white;
    background-color: blue !important;
}

/*              CUSTOM TD NOT CLICKABLE          */
.td-not-clickable
{
    font-weight: bold !important;
    text-align: center;
    cursor: pointer;
    color: #444;
    transition: 0.4s;
    border-radius: 0.3em;
}
.td-not-clickable:hover, .td-not-clickable:active
{
    color: white;
    background-color: grey !important;
}


/*              CUSTOM HEADER                   */
.text-link, .hidden { 
    display: none; 
}
.text-link {
    font-size: 10px;
}
.img-link { 
    transition: 0.3s; 
}
.nav-item .btn:hover > .text-link, .dropdown .btn:hover > .text-link {
    display: block;
}
.nav .dropdown .btn:hover, .nav .dropdown .btn:focus, .nav .dropdown .btn:active,
.nav .dropdown-custom .btn:hover, .nav .dropdown-custom .btn:focus, .nav .dropdown-custom .btn:active {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.1), 0 6px 20px 0 rgba(0, 0, 0, 0.09);
}

/*              DISABLED BUTTONS                */
.btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/*              CUSTOM TABLE                     */
.table-custom thead th {
    font-style: italic;
    font-weight: bold;
    background-color: #d8efff;
    color: #444;
    text-transform: uppercase;
    letter-spacing: .05rem;
}
.table-custom thead th:hover, .table-custom thead th:active {
    color: black;
    background-color: #76c6ff;
}
.tr-table-custom:hover, .tr-table-custom:active {
    background-color: yellow !important;
}

/*              BOTTOM RIGHT BUTTON             */
.btn-bottom-right {
    position: fixed;
    bottom: 10px;
    right: 10px;
    z-index: 3;
    border-radius: 10px;
}
.btn-bottom-left {
    position: fixed;
    bottom: 10px;
    left: 10px;
    z-index: 3;
    border-radius: 10px;
}

/*              BOOSTRAP DROPDOWN               */
.dropdown-menu {
    color: #212529;
    background-color: white;

    .dropdown-item:hover {
        background-color: #f0f0f0 !important;
        color: darkblue !important;
    }

    .dropdown-item.active {
        background-color: #d5d5d5 !important;
        color: darkblue !important;
    }
}

.dropdown-menu-sm .dropdown-item {
    padding: .15rem 1rem !important;
    font-size: 0.95rem !important;
}

/*              CUSTOM INPUT GROUP              */
.custom-input-group {
  position: relative;
  display: inline-block;
}

.custom-input-group input {
  padding-right: 1.5em; /* spazio per il simbolo */
  font-size: 16px;
  width: 150px;
}

.custom-input-group .suffix,
.custom-input-group span {
  position: absolute;
  right: 0.5em;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: #333;
  pointer-events: none; /* non interferisce col click */
}


/*              CUSTOM HEADER                   */
.dropdown-custom {
    float: left;
    overflow: hidden;
}

.dropdown-custom-content {
    position: absolute;
    width: 100%;
    left: 0;
    top: 4rem;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.1), 0 6px 20px 0 rgba(0, 0, 0, 0.09);
    transition: 0.3s;
}

.a-link {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.a-link, .a-link:hover, .a-link:active, .a-link:visited {
    text-decoration: none;
    color: #6666ff;
    width: 100%;
    transition: 0.2s;
    padding-left: 10px;
}

.a-link:hover, .a-link:active {
    color: white;
    background-color: #6666ff;
    border-radius: 5px;
}

/*              MODAL FULL SCREEN               */
.modal-fullscreen {
    width: 100vw;
    margin: 0;
    max-width: none;
}

/*         MODAL FULL HEIGHT CONTENT            */
/*
.modal-fullheight-content {
    height: 100vh !important;
}
.modal-fullheight-content .modal-header {
    height: 10vh !important;
}
.modal-fullheight-content .modal-body {
    height: 90vh !important;
}
.modal-fullheight-content .modal-body .container-fluid {
    height: 85vh !important;
}
*/

/*              CUSTOM MODAL XL                 */
.modal-xl {
    width: 90%;
    margin: 3rem auto;
    max-width: 1800px;
}
@media (max-width: 768px) {
    .modal-xl {
        height: fit-content;
        width: 100%;
        margin: 0;
        max-width: 1200px;
    }
}


/*       CUSTOM DATATABLES BOOTSTRAP TABLE      */
.row.justify-content-between.dt-layout-table
{
    margin: 0.75rem 0 !important
}
div.dt-container div.dt-layout-table > div
{
    padding: 0;
}
.dt-search {
    margin-bottom: 1rem !important;
}

/*              CUSTOM BOOTSTRAP BADGE          */
.badge-status {
    text-align: left !important;
    word-wrap: break-word !important;
    font-style: italic;
    font-size: small;
}

/*              CUSTOM BOOTSTRAP ALERT          */

.alert {
    border-radius: 8px;
    transition: 0.3s;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}
.alert:hover {
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.4), 0 12px 40px 0 rgba(0, 0, 0, 0.37);
}

.alert-danger {
    background-color: #f8d7da !important;
}

/*				CUSTOM LOADING GIF				*/
.se-pre-con {
    position: fixed;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: url(/img/wonderful_loader.gif) center no-repeat #fff;
}

/*				CUSTOM SCROLLBAR				*/
/* width */
::-webkit-scrollbar {
    width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
    /* box-shadow: inset 0 0 5px grey;  */
    background: #b4b4b4; 
    border-radius: 7px;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: #7d7d7d; 
    border-radius: 7px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: #5f5e5e; 
}

/*				CUSTOM BOOTSTRAP DROPDOWN HEADER    	*/
.dropdown-menu-header {
    min-width: 80vw !important;
}
.dropdown-menu-header-w100 {
    min-width: 90vw !important;
    right: 0;
    left: auto;
}
.div-link {
    margin: 0.5rem 0;
}

@media all and (max-width: 600px) {
    .nav .dropdown .dropdown-menu.show {
        display: block;
        position: absolute;
        top: 20px;
        right: 0;
        width: 100%;
        border-radius: 8px !important;
        box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2), 0 3px 10px 0 rgba(0, 0, 0, 0.19);
    }
}

/*				CUSTOM CUSTOM STICKY NOTE				*/
.grow {
    margin: 0;
    padding: 0.2rem 1rem;
    width: 20rem;
    height: 3rem;
    position: relative;
    transition: height 0.3s;
    -webkit-transition: height 0.3s;
    font-size: 12px; 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis;
}
.grow:hover {
    height: 150px;
    text-overflow: initial;
    white-space: normal;
    vertical-align: top;
}

/*				CUSTOM SPAN NOTIFICATION				*/
.span-notification {
    background-color: red;
    border-radius: 2em;
    padding: 0px 3.5px;
    position: relative;
    top: 5px;
    color: red;
    right: 5px;
    font-size: 8px;
}
.span-notification-counter {
    background-color: red;
    border-radius: 2em;
    padding: 1px 5px;
    position: relative;
    top: 14.5px;
    right: 10px;
    color: white;
    font-size: 11px;
    font-weight: bold;
}

/*              TOAST                                    */
.jq-toast-single {
    font-family: inherit !important;
}

/*              CUSTOM SNACKBAR                         */
/* The snackbar - position it at the bottom and in the middle of the screen */
.snackbar {
    visibility: hidden;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 2px;
    padding: 1.5em 2.5em;
    position: fixed;
    z-index: 999;
    right: 20%;
    bottom: 30px;
    left: 20%;
    width: auto;
    border-radius: 10px;
}

/* Show the snackbar when clicking on a button (class added with JavaScript) */
.snackbar.show {
    visibility: visible; /* Show the snackbar */
    /* Add animation: Take 0.5 seconds to fade in and out the snackbar.
    However, delay the fade out process for 2.5 seconds */
    -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

/* Animations to fade the snackbar in and out */
@-webkit-keyframes fadein {
    from {bottom: 0; opacity: 0;}
    to {bottom: 30px; opacity: 1;}
}

@keyframes fadein {
    from {bottom: 0; opacity: 0;}
    to {bottom: 30px; opacity: 1;}
}

@-webkit-keyframes fadeout {
    from {bottom: 30px; opacity: 1;}
    to {bottom: 0; opacity: 0;}
}

@keyframes fadeout {
    from {bottom: 30px; opacity: 1;}
    to {bottom: 0; opacity: 0;}
}

/*				CUSTOM HEADER BUTTONS AND LINKS 		*/
.a-link-header, .a-link-header:visited {
    display: flex;
    align-items: center;
    color: gray;
    transition: 0.2s;
    border: none;
    background-color: transparent;
    text-decoration: none;
}
.a-link-header:hover {
    text-decoration: none;
}
.a-link-header i {
    margin: 0.4rem;
    border-radius: 0.3rem;
}
.a-link-header:hover i, .a-link-header:active i {
    text-decoration: none;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2), 0 3px 10px 0 rgba(0, 0, 0, 0.19);
}
.a-link-header:hover * {
    filter: saturate(0.5);
}
.a-link-header:active {
    transform: translateY(-0.1rem);
}

/*				CUSTOM TOOLTIP           				*/
.btn-tooltip .tooltiptext {
    z-index: 1;
    visibility: hidden;
    width: 0;
    height: 0;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2), 0 3px 10px 0 rgba(0, 0, 0, 0.19);
    background-color: gray;
    color: white;
    text-align: center;
    border-radius: 0.3rem;
    padding: 0.1rem 0.5rem;
    font-size: small;
}
.btn-tooltip:hover {
    z-index: 9999;
}
.btn-tooltip:hover .tooltiptext { 
    transition: 0.3s;
    visibility: visible; 
    width: fit-content;
    height: fit-content;
} 

/*				CUSTOM TOGGLE FLAG         				*/
.flag-toggle {
    display: flex;
    align-items: center;
}
.flag-toggle input[type="checkbox"] {
    display: none;
}
.flag-toggle label {
    cursor: pointer;
    padding: 0.225rem 0.75rem;
    border-radius: .3rem;
    width: 100%;
    background-color: #dc3545;
    color: #fff;
    transition: background-color 0.3s ease;
}
.flag-toggle input[type="checkbox"]:checked + label {
    background-color: #28a745;
}
.flag-toggle label::after {
    content: attr(data-off);
}
.flag-toggle input[type="checkbox"]:checked + label::after {
    content: attr(data-on);
}

/*				CUSTOM FOOTER           				*/
footer {
    position: fixed;
    bottom: 0;
    right: 0;
    z-index: 9999;
    background-color: white;
    padding: 0.1rem 0.5rem;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

/*				CUSTOM RESPONSIVE TABLES				*/
.Rtable {
    display: flex;
    flex-wrap: wrap;
    margin: 0 0 3em 0;
    padding: 0;
}
.Rtable-cell {
    box-sizing: border-box;
    flex-grow: 1;
    width: 100%;
    padding: 0.6em 1em;
    overflow: hidden;
    list-style: none;
    border-bottom: solid 2px #d3d3d3;
    background: fade(slategrey,20%);
}

/* Responsive
==================================== */
@media all and (max-width: 600px) {
    .header .dropdown-item {
        padding: 1rem 2rem !important;
    }
    .grow {
        width: 12.5rem;
    }
    
}
@media all and (max-width: 710px) {
    .ul-nav {
        padding-bottom: 1rem !important;
        width: 100%;
        justify-content: space-evenly !important;
        text-overflow: ellipsis !important;
    }
    
    .grow {
        width: fit-content;
        text-align: right;
    }

    button.btn-header, a.btn-header {
        display: block;
        width: 100%;
        margin: 0.2rem;
        padding: 0.5rem !important;
    }
    button.btn-header:first-of-type {
        margin-top: 0.75rem !important;
    }
    
    footer {
        position: relative;
        z-index: 1;
        box-shadow: none;
        padding-top: 2rem;
    }

}
@media all and (max-width: 1100px) {

    .Rtable  {
        display: block;
    }
    .Rtable-cell {
        padding: 0.3em 1em;
        border-bottom: none;
        width: 100% !important;
    }
    .Rtable-cell--foot {
        border-bottom: solid 2px #d3d3d3;
    }

    .home1-check, .img-header { display: none; }
    .home-check { display: block; }
    .btn-home-check {
        display: block;
    }
    
}

/* Table column sizing
================================== */
.Rtable--2cols > .Rtable-cell  { width: 50%; }
.Rtable--3cols > .Rtable-cell  { width: 33.33%; }
.Rtable--4cols > .Rtable-cell  { width: 25%; }
.Rtable--5cols > .Rtable-cell  { width: 20%; }
.Rtable--6cols > .Rtable-cell  { width: 16.6%; }
.Rtable--7cols > .Rtable-cell  { width: 14.28%; }
.Rtable--8cols > .Rtable-cell  { width: 12.5%; }
.Rtable--9cols > .Rtable-cell  { width: 11.1%; }
.Rtable--10cols > .Rtable-cell  { width: 10%; }
.Rtable--11cols > .Rtable-cell  { width: 9.09%; }
.Rtable--12cols > .Rtable-cell  { width: 8.33%; }
.Rtable--13cols > .Rtable-cell  { width: 7.69%; }
.Rtable--14cols > .Rtable-cell  { width: 7.142%; }
.Rtable--15cols > .Rtable-cell  { width: 6.66%; }


/*              FOR DARK-MODE                  */
.dropdown-menu-dark {
    color: white;
    background-color: #212529;

    .dropdown-item:hover {
        background-color: #131517;
    }

    .dropdown-item.active {
        background-color: #131517;
    }
}
hr.hr-dark {
    border-top: 1px solid #555;
}
.card {
    background-color: inherit !important;
}
.modal-content-dark {
    background-color: #212529;
}
.card-div-dark {
    border: 1px solid #444 !important;
    box-shadow: 0 4px 8px 0 #444, 0 6px 20px 0 #444;
}
.card-div-dark:hover {
    border: 1px solid #333 !important;
    box-shadow: 0 8px 16px 0 #333, 0 12px 40px 0 #333;
}
.form-control-dark, .form-control-dark:focus {
    background-color: #495057;
    color: white;
}
footer.footer-dark {
    background-color: #212529;
    color: #dedede;
}
/* select2-search -> select2-search-dark */
/* select2-results -> select2-results */
/* select2-container--default -> select2-container-dark--default */
/* select2-results__option -> select2-results__option-dark */
/* select2-container -> select2-container-dark */

body.bg-light {
    background-color: white !important;
}

.navbar {
    border-bottom: 3px solid #ebebeb !important;
}

body.bg-dark .select2-dropdown .select2-search,
body.bg-dark .select2-dropdown .select2-search input,
body.bg-dark .select2-dropdown .select2-results,
body.bg-dark .select2-dropdown .select2-container--default .select2-selection--single {
    background-color: #343A40 !important;
    color: #dedede !important;
}
body.bg-dark .select2-container--default .select2-results__option[aria-selected=true] {
    background-color: #495057 !important;
    color: #dedede !important;
}
body.bg-dark .select2-dropdown .select2-results__option:hover,
body.bg-dark .select2-dropdown .select2-results__option:active {
    background-color: #333 !important;
}
body.bg-dark .select2-container .select2-selection--single .select2-selection__rendered {
    background-color: #343A40 !important;
    color: #dedede !important;
}
